<?php
/**
 * User:chendenan
 * Created On 2022/3/18 0018 23:17
 */
namespace app\admin\validate;
use think\Validate;
class SpecsValue extends Validate{
    protected  $rule = [
        'specs_id'=>'require',
        'name'=>'require',
    ];
    protected  $message  =[
        'specs_id.require' =>'规格必须',
        'name.require' =>'规格名必须',
    ];
    protected  $scene = [
        'add' =>['specs_id','name'],
    ];
}